import { Application } from 'egg';

export default (app: Application) => {
    const { STRING, CHAR } = app.Sequelize;
    const model = app.model.define('Position', {
        position_id: {
            type: CHAR(32),
            primaryKey: true
        },//主键id
        position_name: STRING(20),//职位名
        position_is_evaluate: CHAR(1),//标识是否可评价（0：否，1：是）
        position_remark: STRING(30),//备注
        created_by: CHAR(32),//创建人id
        updated_by: CHAR(32),//更新人id
        is_delete: CHAR(1),//标识是否删除（0：否，1：是）
    }, { tableName: 't_position' });
    return model;
};
export class Position {
    position_id: string;
    position_name: string;
    position_is_evaluate: string;
    position_remark: string;
    created_by: string;
    updated_by: string;
    is_delete: string;
}